SnippetManager.getSnippet

Queries the known snippets for the first matching @group, @language_id, and/or @trigger.

If @group or @language_id are %NULL, they will be ignored.

class SnippetManager
getSnippet
(
string group
,
string languageId
,
string trigger
)

Parameters

group string

a group name or %NULL

languageId string

a #GtkSourceLanguage:id or %NULL

trigger string

the trigger for the snippet

Return Value

Type: Snippet

a #GtkSourceSnippet or %NULL if no matching snippet was found.

Meta